package com.yuw.bean;
public class students {
    //属性
    private String stuName;
    private int stuNo;
    //行为

    public students() {
    }

    public students(int stuNo) {
        this.stuNo = stuNo;
    }

    public students(String stuName) {
        this.stuName = stuName;
    }

    public void doStudios(){
        System.out.println(this.stuName + "is a student...");
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    @Override
    public String toString() {
        return "students{" +
                "stuName='" + stuName + '\'' +
                ", stuNo=" + stuNo +
                '}';
    }
}
